#ifndef __LCD_H

#define __LCD_H

#include "main.h"
#include "spi.h"

#define LCD_WIDTH 240
#define LCD_HEIGHT 240


#define cs_pin SPI1_CS_Pin
#define rs_pin RS_Pin

#define cs_port SPI1_CS_GPIO_Port
#define rs_port RS_GPIO_Port


void lcd_init(void);
void LCD_Clear(uint16_t color);
void LCD_DrawPixel(uint16_t x, uint16_t y, uint16_t color);
void LCD_FillRect(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t color);



#endif
